package com.smartleanx.module.hrm.controller.admin.employee.vo;

import com.smartleanx.framework.common.enums.BizTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


/**
 * 用于接受新增员工时自定义字段
 */
@Schema(description = "管理后台 - 员工新增/修改 Request VO")
@Data
public class EmployeeFieldSaveReqVo {

    @Schema(description = "字段id")
    @NotNull(message = "字段id名不能为空")
    private Long fieldId;

    @Schema(description = "字段名")
    @NotEmpty(message = "字段名不能为空")
    private String colName;

    @Schema(description = "字段值")
    private String fieldValue;

    @Schema(description = "标签分组格式")
    @NotNull(message = "标签分组格式不能为空")
    private Integer labelGroup;

    @Schema(description = "标签页格式")
    @NotNull(message = "标签页格式不能为空")
    private Integer label;

    @Schema(description = "记录ID")
    private Long recordId;

    @Schema(description = "字段类型")
    private Integer type;
}
